//
//  LCPlayerTbCell.m
//  TheLCNews
//
//  Created by apple on 15/12/4.
//  Copyright © 2015年 LC. All rights reserved.
//

#import "LCPlayerTbCell.h"

@implementation LCPlayerTbCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier

{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.contentView.backgroundColor = [UIColor clearColor];
        
        self.visualEffectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle: UIBlurEffectStyleDark]];
        [self.contentView addSubview:self.visualEffectView];
       
        
        self.picImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.picImageView];
        
        
        self.nameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.nameLabel];
        
        
        self.musicNameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.musicNameLabel];
       
        
        self.enterImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ppp"]];
        [self.contentView addSubview:self.enterImageView];
        
    }
    
    return self;
    
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.visualEffectView.frame = CGRectMake(KWIDTH / 375 * 4, 0, KWIDTH / 375 * 375 - KWIDTH / 375 * 8, self.contentView.frame.size.height - KHEIGHT / 667 * 2);
    self.visualEffectView.alpha = 1.0;
    
    self.picImageView.frame = CGRectMake(KWIDTH / 375 * 20, KHEIGHT / 667 * 10, KWIDTH / 375 * 27, KWIDTH / 375  * 27);
    //    self.picImageView.backgroundColor = [UIColor cyanColor];
    
    self.nameLabel.frame = CGRectMake(KWIDTH / 375 * 30 + self.picImageView.frame.size.width, 0, KWIDTH / 375 * 100, self.contentView.frame.size.height - KHEIGHT  / 667 * 2);
    self.nameLabel.textColor = [UIColor whiteColor];
    self.nameLabel.font = [UIFont systemFontOfSize:15 * KHEIGHT / 667];
    //    self.nameLabel.backgroundColor = [UIColor blackColor];
    
    self.musicNameLabel.frame = CGRectMake(KWIDTH / 375  * 30 + self.picImageView.frame.size.width + self.nameLabel.frame.size.width, 0, KWIDTH / 375 * 200, self.contentView.frame.size.height - KHEIGHT / 667 * 2);
    self.musicNameLabel.font = [UIFont systemFontOfSize:14];
    self.musicNameLabel.textColor = [UIColor lightGrayColor];
    
    self.enterImageView.frame = CGRectMake(KWIDTH / 375 * 375 - KWIDTH / 375 * 45, KHEIGHT / 667  * 10, KWIDTH / 375  * 25, KWIDTH / 375 * 25);
    self.enterImageView.alpha = 0.8;
    //    self.enterImageView.backgroundColor = [UIColor orangeColor];
    
}







/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
